﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZFSData;
using ZFSData.InterFace.User;
using ZFSData.Manager;

namespace ZFSBusiness
{
    /// <summary>
    /// 菜单管理
    /// </summary>
    public class MenuManager : IMenu
    {
        public List<tb_Menu> GetMenus()
        {
            FactoryManager f = new FactoryManager();
            return f.GetMenuManager().GetMenus();
        }

        /// <summary>
        /// 获取菜单树
        /// </summary>
        /// <returns></returns>
        public List<View_MenuTree> GetMenuTrees()
        {
            FactoryManager f = new FactoryManager();
            return f.GetMenuManager().GetMenuTrees();
        }
    }
}
